package com.study.school;

import com.study.school.service.Person;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testApp {
@Test
    public void testSchool(){
    ApplicationContext ctx=new ClassPathXmlApplicationContext("spring-config.xml");
    Person chinese = ctx.getBean("chinese", Person.class);
    chinese.useAxe();
}

}
